nested vmx: optimize for bulk access of virtual VMCS
authorDongxiao Xu <dongxiao.xu@intel.com>
Fri, 25 Jan 2013 09:19:15 +0000 (10:19 +0100)
committerDongxiao Xu <dongxiao.xu@intel.com>
Fri, 25 Jan 2013 09:19:15 +0000 (10:19 +0100)
commitddddba4388aa342da48045da253155db73f2daac
treec6e617dcea124ea7f677be5b9b536d8a7c457ade
parent8916ad7199bf671bacd1a6574b294831ec09c8cf
nested vmx: optimize for bulk access of virtual VMCS

After we use the VMREAD/VMWRITE to build up the virtual VMCS, each
access to the virtual VMCS needs two VMPTRLD and one VMCLEAR to
switch the environment, which might be an overhead to performance.
This commit tries to handle multiple virtual VMCS access together
to improve the performance.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Acked-by Eddie Dong <eddie.dong@intel.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vvmx.h